package com.cmc.cloud.cmclink.doc.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cmes.framework.mybatis.core.dataobject.BaseDO;
import lombok.*;

import java.math.BigDecimal;
import java.util.List;

/**
 * 危险品品名库 DO
 *
 * @author 集运管理员
 */
@TableName("doc_dg_commodity")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DgCommodityDO extends BaseDO {

    /**
     * 主键
     */
    @TableId
    private Long id;
    /**
     * 版本号
     */
    private String versionNo;
    /**
     * 危险货物编号
     */
    private String unNo;
    /**
     * seq
     */
    private Integer seq;
    /**
     * 正式运输名称
     */
    private String psn;
    /**
     * 危险品类别
     */
    private String imoClass;
    /**
     * cmpt_group
     */
    private String cmptGroup;
    /**
     * 副风险
     */
    private String subsidiaryRisk;
    /**
     * 积载类别
     */
    private String stowageCategory;
    /**
     * ext_imdg
     */
    private String extImdg;
    /**
     * 隔离组
     */
    private String segregationGroup;
    /**
     * segregation_table
     */
    private String segregationTable;
    /**
     * segregation_table2
     */
    private String segregationTable2;
    /**
     * 特殊规定
     */
    private String specialProv;
    /**
     * 包装类别
     */
    private String packingGroup;
    /**
     * mp
     */
    private String mp;
    /**
     * clear_living
     */
    private String clearLiving;
    /**
     * foodstuffs
     */
    private String foodstuffs;
    /**
     * heat_source
     */
    private String heatSource;
    /**
     * shade_radient
     */
    private String shadeRadient;
    /**
     * 闪点
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private BigDecimal flashPoint;
    /**
     * 积载类别
     */
    private String stowageSegregation;
    /**
     * 数量限制
     */
    private String limitedQty;
    /**
     * pack_instr
     */
    private String packInstr;
    /**
     * pack_prov
     */
    private String packProv;
    /**
     * ibc_instr
     */
    private String ibcInstr;
    /**
     * ibc_prov
     */
    private String ibcProv;
    /**
     * tank_imo
     */
    private String tankImo;
    /**
     * tank_un
     */
    private String tankUn;
    /**
     * tank_prov
     */
    private String tankProv;
    /**
     * 应急反应措施编号
     */
    private String ems;
    /**
     * not_mix_class1
     */
    private String notMixClass1;
    /**
     * cargo_type
     */
    private String cargoType;
    /**
     * fp_group
     */
    private String fpGroup;
    /**
     * stowage_handling
     */
    private String stowageHandling;
    /**
     * segregation
     */
    private String segregation;
    /**
     * nos
     */
    private String nos;
    /**
     * business_id
     */
    private String businessId;
    /**
     * business_id1
     */
    private String businessId1;
    /**
     * 备注
     */
    private String remark;

    /**
     * 是否最新有效版本
     */
    private Boolean enable;

    /**
     * 增加主子查询
     */
    @TableField(exist = false)
    private List<DgCommodityPsnDO> dgCommodityPsnDOList;
}
